package com.remenote.remenoteback.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @BelongsProject: remenote-back
 * @BelongsPackage: com.remenote.remenoteback.util
 * @Author: 23392
 * @CreateTime: 2024-03-19  18:19
 * @Description: TODO
 * @Version: 1.0
 */
public class TimeUtil {
    private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public static Date parse(String time) {
        try {
            return DATE_FORMAT.parse(time);
        } catch (Exception e) {
            throw new RuntimeException();
        }
    }
}
